←Select platform

SetTimeValue(DicomElement,DateTime[]) Method

Summary

Sets the Time values of a Data Element.

Syntax
C#
VB
C++
Java
public bool SetTimeValue( 
   DicomElement element, 
   DateTime[] value 
) 
Public Overloads Function SetTimeValue( _ 
   ByVal element As DicomElement, _ 
   ByVal value() As Date _ 
) As Boolean 
public boolean setTimeValue(DicomElement element, DicomDateTimeValue[] values) 
public: 
bool SetTimeValue(  
   DicomElement^ element, 
   array<DateTime>^ value 
)  

Parameters

element
An item in the Data Set.

value
Pointer to an array of DateTime objects that contain the Time value(s) to set.

Return Value

true if the Time values were set successfully; otherwise, it is false (the Time values of the Data Element could not be set).

Remarks

This method can be called only if the Value Representation of the Data Element is DicomVRType.TM. For more information about Value Representations, refer to Default Value Representation Table.

Example

For an example, refer to SetDateValue.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly